package com.navajo.web.business.view.searchone;

import org.springframework.beans.factory.annotation.Autowired;

import com.google.common.eventbus.EventBus;
import com.navajo.web.core.ScopeVaadin;
import com.navajo.web.core.ui.UIBuilder;
import com.vaadin.ui.NativeButton;
import com.vaadin.ui.TabSheet;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;

@ScopeVaadin
public class SearchForm extends VerticalLayout {
    private TextField tfName     = UIBuilder.textField("name");
    private TextField tfLastName = UIBuilder.textField("address");
    @Autowired
    private EventBus  eventBus;



    public SearchForm() {
    }



    @Autowired
    public void generate() {
        TabSheet tabSheet = new TabSheet();
        tabSheet.addTab(new NativeButton("xxx"), "Navigation1");
        tabSheet.addTab(new NativeButton("xxx"), "Navigation2");
        addComponent(tabSheet);
        addComponent(tfName);
        addComponent(tfLastName);
    }
}
